package com.xinzhilibrary.dao;

import com.xinzhilibrary.model.InnerOrderInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface InnerOrderDao {
    int insertInnerOrder(InnerOrderInfo innerOrderInfo);// 新增订货订单

    double selectManagerMoney();// 查看管理员总余额

    int updateManagerMoney(double managerMoney);// 更新管理员余额

    int innerGoodsNum(int goodsNum);// 更新商品库存

    String selectGoodsByName(String goodsName);// 查询商品名称
    int selectGoodsNum(String goodsName);// 查询商品库存
    ArrayList<InnerOrderInfo> selectAllInnerOrderByStatus( int igoStatus);
}
